
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">
    <link rel="stylesheet" href="iconfont.css">
</head>
<body>
    <div class="main markdown">
        <h1>IconFont 图标</h1>
        <ul class="icon_lists clear">
            
                <li>
                <i class="icon iconfont icon-yonghu"></i>
                    <div class="name">用户</div>
                    <div class="fontclass">.icon-yonghu</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-book"></i>
                    <div class="name">可订座标签</div>
                    <div class="fontclass">.icon-book</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-card"></i>
                    <div class="name">我的卖座卡</div>
                    <div class="fontclass">.icon-card</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-cashcoupon"></i>
                    <div class="name">我的现金券</div>
                    <div class="fontclass">.icon-cashcoupon</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-yonghu1"></i>
                    <div class="name">用户</div>
                    <div class="fontclass">.icon-yonghu1</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-fanhui-copy"></i>
                    <div class="name">向下箭头</div>
                    <div class="fontclass">.icon-fanhui-copy</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-youjiantou"></i>
                    <div class="name">右键头</div>
                    <div class="fontclass">.icon-youjiantou</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-zuosanjiao-copy"></i>
                    <div class="name">左三角</div>
                    <div class="fontclass">.icon-zuosanjiao-copy</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-icon"></i>
                    <div class="name">右键头</div>
                    <div class="fontclass">.icon-icon</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-yingpiaodingdan"></i>
                    <div class="name">影票订单</div>
                    <div class="fontclass">.icon-yingpiaodingdan</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-shezhi"></i>
                    <div class="name">设置</div>
                    <div class="fontclass">.icon-shezhi</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-yingpiaoxiaofeidingdan"></i>
                    <div class="name">影票消费订单</div>
                    <div class="fontclass">.icon-yingpiaoxiaofeidingdan</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-sanheng"></i>
                    <div class="name">三横</div>
                    <div class="fontclass">.icon-sanheng</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-tong"></i>
                    <div class="name">通</div>
                    <div class="fontclass">.icon-tong</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-sanhengzongleimu"></i>
                    <div class="name">三横总类目</div>
                    <div class="fontclass">.icon-sanhengzongleimu</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-yanchudingdan"></i>
                    <div class="name">演出订单</div>
                    <div class="fontclass">.icon-yanchudingdan</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-shangchengdingdan"></i>
                    <div class="name">商城订单</div>
                    <div class="fontclass">.icon-shangchengdingdan</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-shangchengdingdan1"></i>
                    <div class="name">商城订单</div>
                    <div class="fontclass">.icon-shangchengdingdan1</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-zhanghuyue"></i>
                    <div class="name">账户余额</div>
                    <div class="fontclass">.icon-zhanghuyue</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-huidaodingbu"></i>
                    <div class="name">回到顶部</div>
                    <div class="fontclass">.icon-huidaodingbu</div>
                </li>
            
        </ul>

        <h2 id="font-class-">font-class引用</h2>
        <hr>

        <p>font-class是unicode使用方式的一种变种，主要是解决unicode书写不直观，语意不明确的问题。</p>
        <p>与unicode使用方式相比，具有如下特点：</p>
        <ul>
        <li>兼容性良好，支持ie8+，及所有现代浏览器。</li>
        <li>相比于unicode语意明确，书写更直观。可以很容易分辨这个icon是什么。</li>
        <li>因为使用class来定义图标，所以当要替换图标时，只需要修改class里面的unicode引用。</li>
        <li>不过因为本质上还是使用的字体，所以多色图标还是不支持的。</li>
        </ul>
        <p>使用步骤如下：</p>
        <h3 id="-fontclass-">第一步：引入项目下面生成的fontclass代码：</h3>


        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;link rel="stylesheet" type="text/css" href="./iconfont.css"&gt;</span></code></pre>
        <h3 id="-">第二步：挑选相应图标并获取类名，应用于页面：</h3>
        <pre><code class="lang-css hljs">&lt;<span class="hljs-selector-tag">i</span> <span class="hljs-selector-tag">class</span>="<span class="hljs-selector-tag">iconfont</span> <span class="hljs-selector-tag">icon-xxx</span>"&gt;&lt;/<span class="hljs-selector-tag">i</span>&gt;</code></pre>
        <blockquote>
        <p>"iconfont"是你项目下的font-family。可以通过编辑项目查看，默认是"iconfont"。</p>
        </blockquote>
    </div>
</body>
</html>
